package com.yixun.qfbao.request.login;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author zilong.liu
 * @date 2020-8-3
 * @desc
 * 
 */
@Data
public class NewLoginReqDto {
	
	@Pattern(regexp = "^\\d{11}$", message = "手机号码必须为11位数字")
	@ApiModelProperty(value = "手机号")
	private String phone;
	
	@ApiModelProperty(value = "验证码")
	private String verificationCode;
	
	@ApiModelProperty(value = "密码")
	private String pwd;
	
	@NotNull(message = "登录方式不能为空")
	@ApiModelProperty(value = "登录方式 1验证码， 2密码")
	private int loginWay;
	
	@ApiModelProperty(value = "小程序中获取的openId")
	private String openId;
	
	@ApiModelProperty(value = "换openId的code")
	private String jsCode;
	
}
